# -*- coding: utf-8 -*-
"""
_______________________________________
    File Name:   
    Description:
    Author:     Ethan
    date:       2024/7/12
_______________________________________
"""  # -*- coding: utf-8 -*-
import sys

from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QApplication,QMainWindow,QDesktopWidget,QWidget
from PyQt5.uic import loadUi
class MyMainWindow(QWidget):

    def __init__(self):
        super().__init__()
        self.init_ui()

    def init_ui(self):
        self.ui = loadUi('./main.ui')

        self.ui.menu_layer.triggered.connect(self.layermanager)

    def layermanager(self):
        self.ui.stackedWidget.setCurrentIndex(5)










if __name__ == '__main__':


    app = QApplication(sys.argv)
    myWin = MyMainWindow()
    # setcenter(myWin)
    myWin.ui.show()

    app.exec()